import request from '@/utils/request'
//仓库基本信息管理

//挂架信息
export function queryHuoJiaList(data) {
  return request({
    url: '/guajialx/queryGuajialxAsPage',
    method: 'post',
    // headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
//库房管理
export function queryKufangList(data) {
  return request({
    url: '/cangkusz/queryCangkuszAsPage',
    method: 'post',
    // headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
//列表
export function queryKufangshowList(data) {
  return request({
    url: '/kufang/queryKufangList',
    method: 'post',
    // headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
export function insertKufang(data) {//增加编辑库房
  return request({
    url: '/kufang/insertKufang',
    method: 'post',
    // headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
//获取库房用户
export function queryKufangUser(data) {
  return request({
    url: '/yonghukf/getkfYonghuList',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data
  })
}
//设置库房用户权限
export function setKufangUser(data) {
  return request({
    url: '/yonghukf/insertYonghukf',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data
  })
}
//获取用户库房权限
export function queryUserKufang(data) {
  return request({
    url: '/yonghukf/getYonghukfList',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data
  })
}
//设置分类用户权限
export function setZhuanyeUser(data) {
  return request({
    url: '/yonghuzy/insertYonghuzy',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data
  })
}
//获取用户分类权限
export function queryUserZhuanye(data) {
  return request({
    url: '/yonghuzy/queryYonghuzyList',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data
  })
}

export function deleteKufang(data) {//删除
  return request({
    url: '/cangkusz/delete',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
export function addKufang(data) {//添加
  return request({
    url: '/cangkusz/add',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
export function updateKufang(data) {//编辑
  return request({
    url: '/cangkusz/update',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}

export function getKufangOne(data) {//单一库房信息
  return request({
    url: '/cangkusz/getCangkuszByID',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
//货位管理
export function queryHuoWeiListPage(data) {
  return request({
    url: '/huoweisz/queryHuoweiszAsPage',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
export function queryHuoWeiList(data) {
  return request({
    url: '/huoweisz/getList',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
export function AddHuowei(data) {
  return request({
    url: '/huoweisz/add',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
export function UptHuowei(data) {
  return request({
    url: '/huoweisz/update',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
export function DelHuowei(data) {
  return request({
    url: '/huoweisz/delete',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
export function updateHuoweiStatus(data) {
  return request({
    url: '/huoweisz/updateHuoweizt',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}


//托盘

export function queryTuoPanList(data) {
  return request({
    url: '/tuopansz/queryTuopanszAsPage',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
export function queryTuoPanListAll(data) {
  return request({
    url: '/tuopansz/getList',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}

export function AddTuopan(data) {
  return request({
    url: '/tuopansz/add',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}

export function DelTuopan(data) {
  return request({
    url: '/tuopansz/delete',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
export function UpdateTuopan(data) {
  return request({
    url: '/tuopansz/update',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
export function UpdateTuopanStatus(data) {
  return request({
    url: '/tuopansz/updateZhuangtai',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
//挂架类型
export function queryguajialx(data) {
  return request({
    url: '/guajialx/queryGuajialxAsPage',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
export function queryguajialxAll(data) {
  return request({
    url: '/guajialx/getList',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
export function addguajialx(data) {
  return request({
    url: '/guajialx/add',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
export function updateguajialx(data) {
  return request({
    url: '/guajialx/update',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
export function delguajialx(data) {
  return request({
    url: '/guajialx/delete',
    method: 'post',
    headers: { 'content-Type': 'multipart/form-data' },
    data,
  })
}
